package com.travel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author: libin
 * Date: 2025/6/16 15:43
 * Description: 门票报名信息传输对象
 **/
@Data
@ApiModel(value = "TicketRegistrationDTO", description = "门票报名信息传输对象")
public class TravelRegistrationDTO {

    @ApiModelProperty(value = "产品ID", example = "1", required = true)
    private Integer productId;

    @ApiModelProperty(value = "报名人姓名", example = "张三", required = true)
    private String name;

    @ApiModelProperty(value = "联系电话", example = "13800138000", required = true)
    private String phone;

    @ApiModelProperty(value = "成人数量", example = "2", required = true)
    private Integer adultCount;

    @ApiModelProperty(value = "成人单价(元)", example = "150.00", required = true)
    private BigDecimal adultPrice;

    @ApiModelProperty(value = "儿童数量", example = "1", required = true)
    private Integer childCount;

    @ApiModelProperty(value = "儿童单价(元)", example = "80.00", required = true)
    private BigDecimal childPrice;

    // 总价一般是根据成人数量、单价和儿童数量、单价计算得出，前端传值也可，看业务需求
    @ApiModelProperty(value = "总价(元)", example = "380.00", required = true)
    private BigDecimal totalPrice;
}